package com.company.jvm.gc;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

class User{
    String uid;
    public User(String id){
        uid = id;
    }
}
public class OOMTest {
    public static void main(String[] args) {
        List<User> list = new ArrayList<>();
        while (true){
            list.add(new User(UUID.randomUUID().toString()));
        }
    }
}
